{include file="$SkinFullPath/$DefaultSkin/header.tpl"}

<hr />

<h1>{$faq_title|upper}</h1><br />

<table cellspacing="1">

  {section name=CATListing loop=$CATListing}
  <tr>
    <td colspan="2">
      <table width="100%">
        <tr>
          <td>
            <font size="2"><b><a href="{$PHP_SELF}?faq={$CATListing[CATListing].cat_f_id}&amp;ca={$CATListing[CATListing].cat_id}">{$CATListing[CATListing].cat_title}</a></b></font>
            {if $orbitfaq_accesslevel != 'none' && $allowUserPosts == '1' && $CATListing[CATListing].faq_allow_user_posts == '1' && $usersMustBeLoggedIn == '1'}
               - <a href="askquestion.php?faq={$CATListing[CATListing].cat_f_id}&amp;ca={$CATListing[CATListing].cat_id}">
               ask question
              </a>
            {elseif $usersMustBeLoggedIn == '0' && $allowUserPosts == '1' && $CATListing[CATListing].faq_allow_user_posts == '1'}
              - <a href="askquestion.php?faq={$CATListing[CATListing].cat_f_id}&amp;ca={$CATListing[CATListing].cat_id}">
               ask question
              </a>
            {/if}
          </td>
        </tr>
      </table>
    </td>
  </tr>
  {if $CATListing[CATListing].cat_qn_count != '0'}
  {section name=QNListing loop=$QNListing}
  {if $QNListing[QNListing].qn_c_id == $CATListing[CATListing].cat_id}
  <tr>
    <td colspan=2 style="padding-left: 15px;">
      <h3><a href="{$PHP_SELF}?faq={$CATListing[CATListing].cat_f_id}&amp;ca={$ca}#qn{$QNListing[QNListing].qn_c_id}">{$QNListing[QNListing].qn_desc}?</a></h3>
    </td>
  </tr>
  {/if}
  {/section}
  {else}
  <tr>
    <td>
      &nbsp;&nbsp;No Content Available
    </td>
  </tr>
  {/if}

  {/section}
</table><br /><br /><hr />

<table cellspacing="1">

  {section name=CATListing loop=$CATListing}
  <tr>
    <td colspan="2">
      <table width="100%">
        <tr>
          <td><br /><br />
            <font size="2"><b><a href="{$PHP_SELF}?faq={$CATListing[CATListing].cat_f_id}&amp;ca={$CATListing[CATListing].cat_id}">{$CATListing[CATListing].cat_title}</a></b></font>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  {if $CATListing[CATListing].cat_qn_count != '0'}
  {section name=QNListing loop=$QNListing}
  {if $QNListing[QNListing].qn_c_id == $CATListing[CATListing].cat_id}
  <tr>
    <td colspan="2" style="padding-left: 15px;"><br />
      <h3><a id="qn{$QNListing[QNListing].qn_id}" name="qn{$QNListing[QNListing].qn_id}">{$QNListing[QNListing].qn_desc}?</a></h3><br />
      {$QNListing[QNListing].qn_ans_desc}
      <a href="#top">Back to top</a>
    </td>
  </tr>
  {/if}
  {/section}
  {/if}

  {/section}
</table>

{include file="$SkinFullPath/$DefaultSkin/footer.tpl"}